package com.ncsc.erp.model;
// Generated 20 มิ.ย. 2557, 12:55:43 by Hibernate Tools 3.4.0.CR1


import java.util.Date;
import javax.persistence.AttributeOverride;
import javax.persistence.AttributeOverrides;
import javax.persistence.Column;
import javax.persistence.EmbeddedId;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;

/**
 * WfFlowTransLine generated by hbm2java
 */
@Entity
@Table(name="wf_flow_trans_line"
    ,catalog="ncsc_erp"
)
public class WfFlowTransLine  implements java.io.Serializable {


     private WfFlowTransLineId id;
     private WfFlowTrans wfFlowTrans;
     private WfJobMaster wfJobMaster;
     private WfFlowStatus wfFlowStatus;
     private WfWorkstation wfWorkstation;
     private HrEmp hrEmp;
     private Short ftFlowSeqNo;
     private Date ftUpdatedDtm;

    public WfFlowTransLine() {
    }

	
    public WfFlowTransLine(WfFlowTransLineId id, WfFlowTrans wfFlowTrans) {
        this.id = id;
        this.wfFlowTrans = wfFlowTrans;
    }
    public WfFlowTransLine(WfFlowTransLineId id, WfFlowTrans wfFlowTrans, WfJobMaster wfJobMaster, WfFlowStatus wfFlowStatus, WfWorkstation wfWorkstation, HrEmp hrEmp, Short ftFlowSeqNo, Date ftUpdatedDtm) {
       this.id = id;
       this.wfFlowTrans = wfFlowTrans;
       this.wfJobMaster = wfJobMaster;
       this.wfFlowStatus = wfFlowStatus;
       this.wfWorkstation = wfWorkstation;
       this.hrEmp = hrEmp;
       this.ftFlowSeqNo = ftFlowSeqNo;
       this.ftUpdatedDtm = ftUpdatedDtm;
    }
   
     @EmbeddedId

    
    @AttributeOverrides( {
        @AttributeOverride(name="ftNo", column=@Column(name="FT_NO", nullable=false) ), 
        @AttributeOverride(name="ftLineNo", column=@Column(name="FT_LINE_NO", nullable=false) ) } )
    public WfFlowTransLineId getId() {
        return this.id;
    }
    
    public void setId(WfFlowTransLineId id) {
        this.id = id;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_NO", nullable=false, insertable=false, updatable=false)
    public WfFlowTrans getWfFlowTrans() {
        return this.wfFlowTrans;
    }
    
    public void setWfFlowTrans(WfFlowTrans wfFlowTrans) {
        this.wfFlowTrans = wfFlowTrans;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_FLOW_JM_NO")
    public WfJobMaster getWfJobMaster() {
        return this.wfJobMaster;
    }
    
    public void setWfJobMaster(WfJobMaster wfJobMaster) {
        this.wfJobMaster = wfJobMaster;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_FLOW_STATUS_NO")
    public WfFlowStatus getWfFlowStatus() {
        return this.wfFlowStatus;
    }
    
    public void setWfFlowStatus(WfFlowStatus wfFlowStatus) {
        this.wfFlowStatus = wfFlowStatus;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_FLOW_WS_NO")
    public WfWorkstation getWfWorkstation() {
        return this.wfWorkstation;
    }
    
    public void setWfWorkstation(WfWorkstation wfWorkstation) {
        this.wfWorkstation = wfWorkstation;
    }

@ManyToOne(fetch=FetchType.LAZY)
    @JoinColumn(name="FT_UPDATED_BY_EMP_NO")
    public HrEmp getHrEmp() {
        return this.hrEmp;
    }
    
    public void setHrEmp(HrEmp hrEmp) {
        this.hrEmp = hrEmp;
    }

    
    @Column(name="FT_FLOW_SEQ_NO")
    public Short getFtFlowSeqNo() {
        return this.ftFlowSeqNo;
    }
    
    public void setFtFlowSeqNo(Short ftFlowSeqNo) {
        this.ftFlowSeqNo = ftFlowSeqNo;
    }

    @Temporal(TemporalType.TIMESTAMP)
    @Column(name="FT_UPDATED_DTM", length=19)
    public Date getFtUpdatedDtm() {
        return this.ftUpdatedDtm;
    }
    
    public void setFtUpdatedDtm(Date ftUpdatedDtm) {
        this.ftUpdatedDtm = ftUpdatedDtm;
    }




}


